/**
 * 
 */
package singletons;

/**
 * @author hoannguyen
 * 
 */
public class Chicken {

	private static Chicken uniqueChickenInstane = new Chicken();

	private Chicken() {
		// Singleton pattern.
	}

	public static Chicken getIntance() {
		return uniqueChickenInstane;
	}

	public void quack() {
		System.out.println(uniqueChickenInstane + " is quacking .....");
	}
}
